# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=deja-dup
pkgver=43.3
pkgrel=0
pkgdesc="Simple backup tool for GNOME"
url="https://wiki.gnome.org/Apps/DejaDup"
# s390x and riscv64 blocked by rust
arch="all !s390x !riscv64"
license="GPL-3.0-or-later"
depends="dbus:org.freedesktop.Secrets duplicity py3-requests-oauthlib"
makedepends="meson gtk4.0-dev json-glib-dev libadwaita-dev
	libsecret-dev libsoup3-dev vala itstool appstream-glib
	desktop-file-utils"
checkdepends="coreutils diffutils"
subpackages="$pkgname-lang $pkgname-doc"
source="https://gitlab.gnome.org/World/deja-dup/-/archive/$pkgver/deja-dup-$pkgver.tar.gz"
options="!check" # fail hard on builders, work on CI and locally

build() {
	abuild-meson . output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
5ba36eda709daf64aee9f338d3fb34a610b940b5d8f9b32d8ea9681e8a7a481f197000aa329a1ac3982dfd935a4906d8d113aa25e0014cd3899c25010b8a78fb  deja-dup-43.3.tar.gz
"
